/*******************************************************\
|* Author: Trevor Sundberg
\*******************************************************/

// Includes
#include "SkugoDockablePlugin.hpp"

namespace Skugo
{
  //***************************************************************************
  DockablePlugin::DockablePlugin(const string& remoteTypeName, Client* client, const string& displayName) :
    Plugin(remoteTypeName, client)
  {
    // Start writing the packet that will create the plugin
    auto outgoing = this->BeginCreateRemotePlugin();

    // Add the name of the ui element to the construction packet
    outgoing.WriteAsciiString(displayName);

    // Finish off creation of the remote plugin
    this->EndCreateRemotePlugin(outgoing);
  }
}
